﻿@using ChangePasswordModel = Dispatcher.Controllers.ChangePasswordModel
@model ChangePasswordModel

@{
    ViewBag.Title = "修改密码";
}

<div class="container">
    <h2>Login</h2>
    <hr />
    <div class="row">
        <div class="col-md-4">
            <form asp-controller="Account" asp-action="ChangePassword" method="post">
                <div asp-validation-summary="All" class="text-danger"></div>
                <div class="form-group">
                    <label asp-for="Username">Username:</label>
                    <input asp-for="Username" class="form-control" />
                    <span asp-validation-for="Username" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="OldPassword">Password:</label>
                    <input asp-for="OldPassword" class="form-control" type="password" />
                    <span asp-validation-for="OldPassword" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="NewPassword">Password:</label>
                    <input asp-for="NewPassword" class="form-control" type="password" />
                    <span asp-validation-for="NewPassword" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <input type="submit" value="Change" class="btn btn-primary" />
                </div>
            </form>
        </div>
    </div>
</div>